<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>信息审核</title>
    <link rel="stylesheet" href="./css/base.css" />
    <link rel="stylesheet" href="./iconfont/iconfont.css" />

    <link rel="stylesheet" href="./css/Information.css" />
    <style>
      @font-face {
        font-family: "SIMLI";
        src: url("./font/SIMLI.ttf") format("truetype");
        /* 添加其他格式的字体文件 */
      }
	  #app{
		width: 100%;
		height: 100vh;
		overflow: hidden;
	  }
    </style>
  </head>
  <body>
	<div class="" id="app">
    <div class="logo">
      <img src="./img/Logo.png" alt="" />
    </div>
    <div class="text">
      <p>
        等待总是那么的漫长，好不容易轮到我们，我用筷子一夹就是一个，然后放在我刚才倒醋的碗里，咬上一口，口感极佳，鲜味无比...
      </p>
    </div>
    <button>信息审核中...</button>
</div>
  </body>
  <script src="./js/vue@2.7.14.js"></script>
  <script src="./js/axios@1.5.0.min.js"></script>
  <script src="./js/request.js"></script>

  <script>
    new Vue({
      el: "#app",
      data: function () {
        return {

		};
      },
	  mounted(){
		const token = sessionStorage.getItem("token");
		const url = baseUrl + "/user.order/getInfo";
		if(!token){
			console.log(111);
			window.location.href = "login.html";
		}else{
			console.log(222);
          axios({
            url: url,
            method: "post",
            params: {
              app_id: 10001,
              token:token
            },
          })
            .then((res) => {
              // 处理响应结果
              if (res.data.pay_status.value == 10) {
              // console.log(res.data.pay_status.value);
              window.location.href = "Information.html";
            } else if (res.data.pay_status.value == 20) {
              // console.log(res.data.pay_status.value);
              window.location.href = "inquire.html";
            }
            })
            .catch((error) => {
              // 处理错误
              console.error(error);
            });
		}
	  }
    });
  </script>
</html>
